package com.pxx.item.service;

import com.pxx.common.utils.PageResult;
import com.pxx.item.pojo.TbBrand;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Yoo19
* @description 针对表【tb_brand(品牌表，一个品牌下有多个商品（spu），一对多关系)】的数据库操作Service
* @createDate 2025-06-23 19:39:44
*/
public interface TbBrandService extends IService<TbBrand> {


    PageResult<TbBrand> queryBrandPage(Integer page, Integer rows, String sortBy, Boolean desc, String key);

    void saveBrand(TbBrand tbBrand, List<Long> cids);

    void updateBrand(TbBrand tbBrand, List<Long> cids);

    void deleteBrand(Long id);

    TbBrand queryNamesById(Long brandId);

    List<TbBrand> queryBrandByCid(Long cid);
}
